/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [RollingMessageMain.java]
 * Creation Date        [10-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_02_gui.rolling_msg;

import javax.swing.JFrame;

/**
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public class RollingMessageMain {

	/**
	 * 测试方法
	 * 
	 * @param args
	 *            命令行参数
	 */
	public static void main(String[] args) {
		int width = 200;
		int height = 100;
		RollingMessage rollingMsg = new RollingMessage(width, height);
		JFrame frame = new JFrame("滚动的消息");

		frame.setLocation(0, 0);
		frame.setSize(width, height);

		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().add(rollingMsg);
		frame.setVisible(true);
	}

}
